package com.jxd.ordering.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

import java.util.List;
import java.util.Map;

/**
 * @ClassName Order
 * @Description TODO
 * @Author Ankailong
 * @Date 2022/9/25
 * @Version 1.0
 */
public class Order extends Entity {
    @TableId(value = "orderno",type = IdType.AUTO)
    private Integer orderno;//订单号
    private String time;//创建时间
    private Integer empno;//申请人编号
    private Integer type;//订餐类型（1 午餐/2 晚餐）
    private Integer num;//订餐数量
    private Double price;//总金额
    private Integer statu;//状态（1 未提交/2 待部门确认/3 待系统确认/4 完成）
    private List<Integer> emps;//员工编号列表
    private Map<Integer, Object> meals;//餐品集合

    public Integer getOrderno() {
        return orderno;
    }

    public void setOrderno(Integer orderno) {
        this.orderno = orderno;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public Integer getEmpno() {
        return empno;
    }

    public void setEmpno(Integer empno) {
        this.empno = empno;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Integer getNum() {
        return num;
    }

    public void setNum(Integer num) {
        this.num = num;
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    public Integer getStatu() {
        return statu;
    }

    public void setStatu(Integer statu) {
        this.statu = statu;
    }

    public List<Integer> getEmps() {
        return emps;
    }

    public void setEmps(List<Integer> emps) {
        this.emps = emps;
    }

    public Map<Integer, Object> getMeals() {
        return meals;
    }

    public void setMeals(Map<Integer, Object> meals) {
        this.meals = meals;
    }

    public Order() {
    }

    public Order(Integer orderno, String time, Integer empno, Integer type, Integer num, Double price, Integer statu, List<Integer> emps, Map<Integer, Object> meals) {
        this.orderno = orderno;
        this.time = time;
        this.empno = empno;
        this.type = type;
        this.num = num;
        this.price = price;
        this.statu = statu;
        this.emps = emps;
        this.meals = meals;
    }

    @Override
    public String toString() {
        return "Order{" +
                "orderno=" + orderno +
                ", time='" + time + '\'' +
                ", empno=" + empno +
                ", type=" + type +
                ", num=" + num +
                ", price=" + price +
                ", statu=" + statu +
                ", emps=" + emps +
                ", meals=" + meals +
                '}';
    }
}
